package com.ct.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user") // 指定实体和数据库表kss-user做映射
public class SysUser implements Serializable {
    // 用户id
    @TableId(type = IdType.AUTO)
    public Integer id;
    @TableField(value = "company_id")
    public int companyId;
    @TableField(value = "user_name")
    public String userName;
    @TableField(value = "nick_name")
    public String nickName;
    @TableField(value = "phone")
    public String phone;
    @TableField(value = "email")
    public String email;
    @TableField(value = "pass_word")
    public String passWord;
    @TableField(value = "sex")
    public String sex;
    @TableField(value = "state")
    public String state;
    @TableField(value = "operator")
    public String operator;
    @TableField(value = "create_time",fill= FieldFill.INSERT)
    public Date createTime;
    @TableField(value = "modify_time")
    public Date modifyTime;

}
